<?php  
        session_start();
        if ($_SESSION['flag'] != 2) {
                echo "<script language='javascript'>";
                echo "alert('You have no permission to read this page!');";
                echo "history.back();";
                echo "</script>";
                header("location:../login.php");
        }
        else {
                echo '
<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width; text/html; charset=utf-8" http-equiv="Content-Type">
<title>餐廳資訊填寫</title>
<link href="../mobile.css" rel="stylesheet" type="text/css">
<style type="text/css">
.auto-style1 {
	color: #FF0000;
}
</style>
</head>

<body>

<div id="banner">
	餐廳資訊填寫
	<div id="home">
		<a href="select.php">
	<img alt="" class="auto-style1" height="40" src="../pic/home.png" width="40"></a>
	</div>

	<div id="logout">
		<a href="../logout.php">
		<img alt="" class="auto-style1" height="41" src="../pic/logout.png" width="41"></a>
	</div>
</div>

<div id="content">
	<form method="post" action="insert_data.php" name="myForm" enctype="multipart/form-data">
		<br/>
		<div id="button_z">餐廳名稱</div>
		<p><input type="text" name="name" size="15" id="ttex"></p>
		<div id="button_z">分店名稱（如果無分店寫"無"）</div>
		<p><input type="text" name="second_name" size="15" id="ttex"></p>
		<div id="button_z">店家地址</div>
		<p><input type="text" name="address" size="15" id="ttex"></p>
		<div id="button_z">店家電話 EX:02-1234-1234</div>
		<p><input type="text" name="tel" size="15" id="ttex"></p>
		<div id="button_z">餐廳介紹</div>
		<p><textarea name="content" COLS=40 ROWS=6 id="ttexb"></textarea></p>
		<div id="button_z">推薦菜單（<span class="auto-style1">檔名使用英文</span>）</div>
		<p><input type="text" name="food1_txt" size="15" id="ttexc"><input type="file" name="file0" id="file0"/></p>
		<p><input type="text" name="food2_txt" size="15" id="ttexc"><input type="file" name="file1" id="file1"/></p>
		<p><input type="text" name="food3_txt" size="15" id="ttexc"><input type="file" name="file2" id="file2"/></p>
		<p><input type="text" name="food4_txt" size="15" id="ttexc"><input type="file" name="file3" id="file3"/></p>	
		<div id="button_z">店面照片</div>
		<input type="file" name="file4" id="file4" />
		<div id="button_z">最大可供訂位數量(請填數字)</div>
		<input type="text" name="max_number" id="ttex" size="15">
		<div id="button_z">單筆訂位數量(請填數字)</div>
		<input type="text" name="single_number" id="ttex" size="15">		
		
		<p><input type="submit" value="下一頁">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"></p>		
		<hr>
		<br/>		
	</form>
</div>


</body>

</html>';
}
?>
